home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / w32.dm < prev   
Text File  |  1997-04-12  |  4KB  |  203 lines

  1.  
  2. # DMAKE makefile for WATCOM C 32 bit
  3.  
  4. DPP = ..\bin\dpp
  5.  
  6. DPPOPTS = -C $(STRAT)
  7.  
  8.  
  9. all : # setup.dos
  10. %@[
  11.     @echo off
  12.  
  13.     cd kernel
  14.     echo Entering kernel
  15.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  16.     if errorlevel 1 goto done
  17.  
  18.     cd ..\class
  19.     echo Entering class
  20.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  21.     if errorlevel 1 goto done
  22.  
  23.     cd ..\threads
  24.     echo Entering threads
  25.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  26.     if errorlevel 1 goto done
  27.  
  28.     cd ..\dpp
  29.     echo Entering dpp
  30.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) install
  31.     if errorlevel 1 goto done
  32.  
  33.     cd ..\generics
  34.     echo Entering generics
  35.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  36.     if errorlevel 1 goto done
  37.  
  38. :done
  39.     cd ..
  40. ]
  41.  
  42. all-scratch : # setup.dos
  43. %@[
  44.     @echo off
  45.  
  46.     md lib
  47.  
  48.     cd kernel
  49.     echo Entering kernel
  50.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) NEW=1
  51.     if errorlevel 1 goto done
  52.  
  53.     cd ..\class
  54.     echo Entering class
  55.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  56.     if errorlevel 1 goto done
  57.  
  58.     cd ..\threads
  59.     echo Entering threads
  60.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  61.     if errorlevel 1 goto done
  62.  
  63.     cd ..\dpp
  64.     echo Entering dpp
  65.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) install
  66.     if errorlevel 1 goto done
  67.  
  68.     cd ..\generics
  69.     echo Entering generics
  70.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  71.     if errorlevel 1 goto done
  72.  
  73. :done
  74.     cd ..
  75. ]
  76.  
  77. clean : 
  78. %@[
  79.     @echo off
  80.  
  81.     cd kernel
  82.     echo Entering kernel
  83.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  84.  
  85.     cd ..\class
  86.     echo Entering class
  87.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  88.  
  89.     cd ..\threads
  90.     echo Entering threads
  91.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  92.  
  93.     cd ..\generics
  94.     echo Entering generics
  95.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  96.  
  97.     cd ..\dpp
  98.     echo Entering dpp
  99.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  100.  
  101. rem    cd ..\windows
  102. rem    echo Entering windows
  103. rem    $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  104.  
  105. rem    cd ..\odbc
  106. rem    echo Entering odbc
  107. rem    $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  108.  
  109.     cd ..\examples\setup
  110.     echo Entering examples (takes a while - please wait)
  111.     call cleanall.bat
  112.  
  113. rem    cd ..\..\winexam\setup
  114. rem    echo Entering winexam (takes a while - please wait)
  115. rem    call realcln.bat
  116.  
  117.     cd ..\..
  118.     bin\rm -zq setup.unx setup.dos *.~ *.?~ *.??~ #*.* *.{*
  119. ]
  120.  
  121. realclean : clean
  122.     bin\rm -zq lib\d*.* bin\dpp bin\dpp.exe include\wingens.h include\odbcgens.h
  123.     bin\rm -zq bin\addcr bin\addcr.exe bin\delcr bin\delcr.exe lib\d*.*
  124.  
  125. dist:
  126.     bin\rm -zq dynace*.zip
  127.     zip -r dynace README m32.dm makefile.unx makefile.inc change.log
  128.     zip dynace bin\*.* class\*.* docs\*.* dpp\*.* generics\*.* lib\*.*
  129.     zip dynace include\*.* kernel\*.* threads\*.* utils\*.* windows\*.* odbc\*.*
  130.     zip -r dynace examples\list examples\exam* examples\setup
  131.     zip -r dynace winexam\list winexam\exam* winexam\setup
  132.  
  133.  
  134.     
  135.  
  136. makegens:
  137. %@[
  138.     @echo off
  139.  
  140.     cd kernel
  141.     rm -zq generics.* 
  142.     $(DPP) $(DPPOPTS) -h -i -s *.d
  143.     if errorlevel 1 goto done
  144.     mv generics.h ../include
  145.  
  146.     cd ..\class
  147.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  148.     if errorlevel 1 goto done
  149.     mv generics.h ../include
  150.  
  151.     cd ..\threads
  152.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  153.     if errorlevel 1 goto done
  154.     mv generics.h ../include
  155.  
  156. :done
  157.     cd ..
  158. ]
  159.  
  160.  
  161.  
  162.  
  163. newgens : makegens
  164. %@[
  165.     @echo off
  166.  
  167.     cd kernel
  168.     echo Entering kernel
  169.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) reallynewgens
  170.     if errorlevel 1 goto done
  171.  
  172.     cd ..\class
  173.     echo Entering class
  174.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  175.     if errorlevel 1 goto done
  176.  
  177.     cd ..\threads
  178.     echo Entering threads
  179.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  180.     if errorlevel 1 goto done
  181.  
  182.     cd ..\dpp
  183.     echo Entering dpp
  184.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  185.     if errorlevel 1 goto done
  186.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) generics.c
  187.     if errorlevel 1 goto done
  188.  
  189. rem    cd ..\windows
  190. rem    echo Entering windows
  191. rem    $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  192. rem    if errorlevel 1 goto done
  193.  
  194. rem    cd ..\odbc
  195. rem    echo Entering odbc
  196. rem    $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  197. rem    if errorlevel 1 goto done
  198.  
  199.  
  200. :done
  201.     cd ..
  202. ]
  203.